﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
//credit to: http://code.google.com/p/typocalypse/source/browse/Trie/IPrefixMatcher.cs
namespace WordRacer.Domain.Model.Tries
{
  public interface IPrefixMatcher<V> where V : class
  {
    String GetPrefix();
    void ResetMatch();
    void BackMatch();
    char LastMatch();
    bool NextMatch(char next);
    List<V> GetPrefixMatches();
    bool IsExactMatch();
    V GetExactMatch();
  }
}
